<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8" />
		<title>容器和链接探测器</title>
		<script src="index.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<h1>容器和链接探测器</h1>
		<p>按F12查看控制台查看结果</p>
		<!--实现容器（Container）探测器和链接（Link）探测器-->
		<script type="text/javascript">
			var cd = new ContainerDetector("@abc #def #ghi");
			var ld = new LinkDetector("http://www.baidu.com http://www.tmail.com http://www.taobao.com");
			cd.detect();
			ld.detect();
		</script>
	</body>

</html>